package com.study.ju.enums;

/**
 * <p>统一接口返回状态信息</p>
 *
 * @version $Id: LoginController.java, v 0.1 18/9/14 chenkelong Exp $
 */
public enum RespCode {

    _C200("200", "返回正确"),
    _C205("205", "有错误，需要刷新页面才能重新操作"),
    _C400("400", "参数错误"),
    _C401("401", "未登录"),
    _C403("403", "没有权限"),
    _C404("404", "不存在"),
    _C405("405", "请求方式不支持"),
    _C412("412", "非法操作"),
    _C413("413", "超过授权限制"),
    _C415("415", "流程错误"),
    _C416("416", "非法调用"),
    _C500("500", "异常错误"),
    _C4001("4001", "当前页面已失效，请重新操作。并跳转到忘记密码页面"),

    ;
    private String code;
    private String value;

    RespCode(String code) {
        this.code = code;
    }

    RespCode(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String code() {
        return this.code;
    }

    public String value() {
        return this.value;
    }
}
